package com.zxs.controller;

import com.zxs.util.R;
import com.zxs.service.IBrandService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author zxs
 * @since 2025-02-27
 */
@RestController
@RequestMapping("/brand")
public class BrandController {
    @Autowired
    private IBrandService brandService;

    //查询品牌列表
    @GetMapping("/list")
    public R list(){
      return R.ok(brandService.list());
//        return R.ok().data("list",brandService.list());
    }
}
